unit Confirm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, sButton;

type
  TFormConfirm = class(TForm)
    ButtonNo: TsButton;
    ButtonYes: TsButton;
    procedure FormShow(Sender: TObject);
    procedure ButtonNoClick(Sender: TObject);
    procedure ButtonYesClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormConfirm: TFormConfirm;

implementation

{$R *.dfm}

procedure TFormConfirm.ButtonNoClick(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

procedure TFormConfirm.ButtonYesClick(Sender: TObject);
begin
  ModalResult := mrOk;
  Hide;
end;

procedure TFormConfirm.FormShow(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

end.
